package com.duoketech.model.deliveryconfig;
import com.duoketech.model.AbstractModel;
import com.duoketech.utils.PageUtil;

public class DeliveryConfig extends AbstractModel<DeliveryConfig>{
    public static final DeliveryConfig dao = new DeliveryConfig();

    public static final String ID = "id";//
    public static final String NAME = "name";//快递名称
    public static final String DELIVERY_CODE = "delivery_code";//快递代码
    public static final String FIRST_WEIGHT = "first_weight";//首重
    public static final String ADDITIONAL_WEIGHT = "additional_weight";//续重
    public static final String AREA = "area";//运送区域
    public static final String FIRST_WEIGHT_PRICE = "first_weight_price";//首重
    public static final String ADDITIONAL_WEIGHT_PRICE = "additional_weight_price";//续重
    public static final String STATUS = "status";//续重
    @Override
    public String tableName() {
        return "t_delivery_config";
    }

    @Override
    public String status() {
        return null;
    }


    public String firstWeight(){

        return PageUtil.g2Kg(getInt(FIRST_WEIGHT))+"";
    }

    public String firstWeightPrice(){
        return PageUtil.fengToYuan(getInt(FIRST_WEIGHT_PRICE))+"";
    }

    public String additionalWeight(){

        return PageUtil.g2Kg(getInt(ADDITIONAL_WEIGHT))+"";
    }

    public String additionalWeightPrice(){
        return PageUtil.fengToYuan(getInt(ADDITIONAL_WEIGHT_PRICE))+"";
    }
}